package avicit.bdp.dcs.semistructure.utils;

public class Constants {
    /**************************************DCS/DDS使用常量**************************************/
    // 测试环境配置信息
    public static final String DCS_HOSTPORT ="http://192.168.0.26:20002";
    public static final String DCS_USERNAME = "avicit2015";
    public static final String DCS_PASSWORD = "avicit2015";

    /**
     * 数据源ID；跟HOSTPORT环境绑定；
     */
    public static String HDFS_DATASOURCE_ID = "402880a4742f5b7e017443d6j8298064";
    public static String IOTDB_DATASOURCE_ID = "402880a4742f5b7e017443nhs7683092";


    /**************************************IoTDB使用常量**************************************/
    /**
     * 查询存储组SQL
     */
    public final static String QUERY_STORAGE_GROUP_SQL = "show storage group";

    /**
     * 查询设备SQL
     */
    public final static String QUERY_DEVICE_SQL = "show devices";

    public final static String QUERY_TIMESERIES_BASE_SQL = "select * from ";

    /**
     * IoTDB接口超时时间，单位是ms，默认1min
     */
    public final static int IOTDB_TIMEOUT = 60 * 1000;

    /**
     * IoTDB接口超时重试次数，默认为4;SessionPool连接池中session连接超时，重试次数超过3次会等待1min再重新创建新的session
     */
    public final static int IOTDB_TIMEOUT_RETRIES = 4;

    /**
     * IoTDB接口超时重试间隔时间，单位是ms，默认每隔2s重试一次
     */
    public final static int IOTDB_TIMEOUT_RETRIY_INTERVAL = 2000;

    /**
     * iotdb的IP地址
     */
    public final static String IOTDB_IP = "192.168.0.24";

    /**
     * iotdb的端口号
     */
    public final static int IOTDB_PORT = 6667;

    /**
     * iotdb用户名
     */
    public final static String IOTDB_USER = "root";

    /**
     * iotdb密码
     */
    public final static String IOTDB_PASSWD = "root";

    /**
     * iotdb session连接池大小
     */
    public final static  int IOTDB_SESSIONT_POOL_SIZE = 3;


    /**************************************HDFS使用常量**************************************/
    public final static String HDFS_IP = "192.168.0.28";
    public final static String HDFS_PORT = "8020";

    /**************************************其他模块使用常量**************************************/

}
